package day20.pack3;

public class Test {
    public static void main(String[] args) {
        Counter counter = new Counter();
        Runnable r = () -> {
            for (int i = 0; i < 50000; i++) {
                counter.increment();
            }
        };
        new Thread(r, "A").start();
        new Thread(r, "B").start();
    }
}
